function funConvertUTCToUTC8(utc)
 {
 d = new Date(utc);
 utc8 = new Date(d.getTime());
 return utc8.toLocaleString();
 }

function showitems(data){
 var items = data.query.results.item;
 var tlist = '';
 for(var i=0;i<items.length;i++){
 tlist += '<div class="tMsg"><p>';
 tlist += items[i]['title'];
 tlist += '</p><div class="tDate">';
var timeUTC8 = funConvertUTCToUTC8(items[i]['pubDate']);
 tlist +=timeUTC8+'</div></div>';
 }
 document.getElementById("twitterwidget").innerHTML = tlist;
}
var userName = "weimian";
var limit = 6;
document.write('<script src="https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D\'https%3A%2F%2Ftwitter.com%2Fstatuses%2Fuser_timeline%2F'+userName+'.rss\'%20limit%20'+limit+'&format=json&callback=showitems"><\/script>');